#include <iostream>
#include <string>
#include <string.h>
using namespace std;

class a
{
public:
    virtual void printName() = 0;
};

class b : public a
{
public:
    void printName()
    {
        cout << "wangxingxing" << endl;
    }
};

class c:public a
{
    public:
    void printName()
    {
        cout << "wangjiajun"<<endl;
    }
};

int main(int argc, char const *argv[])
{
    a *p=new c;
    p->printName();
    return 0;
}
